<?php

namespace app\common\business;

use app\common\model\mysql\Order as OrderModel;

class Order
{
    public $orderObj = null;
    public function __construct()
    {
        $this->orderObj = new OrderModel();
    }

    /**
     * 查询订单列表
     * @param $where
     * @param $limit
     * @param $page
     * @param string $field
     * @return void
     */
    public function getNormalOrderList($where, $limit, $page, string $field = "*"){
        $orderData = $this->orderObj->getNormalOrderList($where, $limit, $page, $field);
        if(!$orderData){
            return [];
        }
        $orderData = $orderData->toArray();
        return $orderData;
    }
}
